package com.day2.entity;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author：jojo
 * @Date：2022/1/18 16:44
 * @Description :TODO
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext applicationContext =  new ClassPathXmlApplicationContext("applicationContext.xml");
        Chinese chinese = applicationContext.getBean("chinese", Chinese.class);
        System.out.println(chinese);
        Jap jap = applicationContext.getBean("jap", Jap.class);
        System.out.println(jap);
    }
}
